package com.hongtech.modules.system.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "日志表")
public class SysLogDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	private Long id;

	@ApiModelProperty(value = "主键")
	private String userName;

	@ApiModelProperty(value = "日志")
	private String title;

	@ApiModelProperty(value = "地址")
	private String url;

	@ApiModelProperty(value = "参数")
	private String params;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	@ApiModelProperty(value = "日志时间")
	private Date createTime;

}
